<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>产品购买</title>
<link href="__PUBLIC__/style.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/js/jquery.js" type="text/javascript"></script>
<script src="__PUBLIC__/artDialog/jquery.artDialog.js?skin=default" type="text/javascript"></script>
<script src="__PUBLIC__/artDialog/plugins/iframeTools.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/ajax.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/common.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/inputpost.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/vanadium.js" type="text/javascript"></script>
<script src="__PUBLIC__/js/inputcheck.js" type="text/javascript"></script>
<script type="text/javascript">
    function fleshVerify(){
        var timenow = new Date().getTime();
        document.getElementById('verifyImg').src= '__URL__/verify.html?'+timenow;
    }
</script>
</head>
<body>
<div class="top50"></div>
<div id="main">
<div class="login"><div class="title">产品购买!</div>
<div class="content">
    <table width="100%" class="table_form">
        <tr><td width="420">
         <form id="myform" >
        <input type="hidden" name="action" value="post" />
        <input type="hidden" name="shopid" value="{$rs['id']}" />
        <input type="hidden" name="shopname" value="{$rs['name']}" />
        <input type="hidden" name="shoprmb" value="{$rmb}" />
        <table width="100%" class="table_form">
            <tr><th>本产品优惠</th><td>
                    {if $rs['discount'] == 1}<a href="###" onclick="look('__URL__/zk.html','会员折扣')" >会员折扣</a>({if $_COOKIE['VipID']}<span class="hot">{$rebate}%</span>{else}<a href="__APP__/index/login?url=__URL__/index-{$rs['id']}.html" title="登录查看我的折扣率">登录</a>{/if}){/if}
                    {if $rs['vip'] == 1}<a href="###" onclick="look('__URL__/hg.html','积分换购')" >积分换购</a>(<span class="hot">{$rs['vipprice']}分</span>){/if}
                    {if $rs['give'] == 1}<a href="###" onclick="look('__URL__/zs.html','积分赠送')" >积分赠送</a>(<span class="hot">￥{$rs['givevip']}分</span>){/if}</td></tr>
            <tr><th width="80">您订购的是</th><td><span class="best">{$rs['name']}&nbsp;￥{$rmb}元</span></td></tr>
            <tr><th>产品价格</th><td>市场价：<span class="hot">￥{$rs['marketprice']}元</span>，优惠价：<span class="hot">￥{$rs['userprice']}元</span>{if isset($_COOKIE['VipID'])}，会员价：<span class="hot">￥{$rmb}元</span>{/if}</td></tr>
            <tr><th>订购数量</th><td><input type="text" name="shopcount" class=":integer :required input-text" size="4" value="1" /><span class="hot">*</span></td></tr>
            <tr><th>联系人</th><td><input type="text" name="youname" class=":required input-text" size="20" value="{$vip['name']}" /><span class="hot">*</span></td></tr>
            <tr><th>联系手机</th><td><input type="text" name="iphone" class=":iphone input-text" size="20" value="{$vip['iphone']}" /><span class="hot">*</span></td></tr>
            <tr><th>联系信箱</th><td><input type="text" name="email" class=":email input-text" size="20" value="{$vip['email']}"  /></td></tr>
            <tr><th>收货地址</th><td><input type="text" name="address" class=":required input-text" size="50" value="{$vip['address']}" /><span class="hot">*</span></td></tr>
            <tr><th>备注要求</th><td><textarea name="about" style="width: 300px;height: 50px;"></textarea></td></tr>
            {if $_COOKIE['VipID']}{if $rs['vip'] == 1}
            <?php
             if($vip['vip']>=$rs['vipprice']){
                $bigsmall = $rs['vipprice'];
             }else{
                $bigsmall = $vip['vip'];
             }
            ?>
            <tr><th>支持积分换购</th><td> 我有<span class="hot">({$vip['vip']})</span>分,最高:<span class="hot">({$rs['vipprice']})</span>分。10分=1元<br /><input onkeyup="this.value=this.value.replace(/\D/g,'')" type="text" name="vipprice" class=":bigsmallee;{$bigsmall} :number input-text" size="5" /></td></tr>    
            {/if}{/if}
            <tr><th>验证码</th><td><input type="text" name="checkcode" class=":required input-text" size="5" /> <img src="__URL__/verify" border="0" align="absmiddle" height="20" width="50" style="margin-left:3px;" alt="如果您无法识别验证码，请点图片更换" onclick="fleshVerify()" id="verifyImg"/></td></tr>
            <tr><th></th><td><input uid="__URL__/datepost" class="button01-out save_ok" type="button" value="购 买"></td></tr>
        </table>
    </form>         
         </td><td><img src="/upload/shop/{$rs['images']}" /></td></tr>
        <tr><td colspan="2">{$rs['content']}</td></tr>
    </table> 
</div>
<div class="title">产品评论!</div>
 {loop $info $key $vo}
<div style="height:10px; border-top:1px solid #fff"></div>
<div class="reply">
{date('Y-m-d h:i:s',$vo['uptime'])} 发表<br />
&nbsp;&nbsp;&nbsp;&nbsp;{$vo['content']}
{if $vo['new'] == 1}
<div class="content">
    管理回复[{date('Y-m-d h:i:s',$vo['replytime'])}]:{$vo['reply']}
</div>
{/if}
</div>
{/loop}
<div style="height:10px; border-top:1px solid #fff"></div>
<div class="content">
    <form id="meform">
    <input type="hidden" name="action" value="post" />
    <input type="hidden" name="pid" value="{$rs['id']}" />
<table width="100%" class="table_form">
    <tr><th width="50">评论内容</th><td><textarea class=":required" name="content" style="width: 500px; height: 50px"></textarea></td></tr>
    <tr><th></th><td><a name="comment" id="comment"></a><input uid="__URL__/commentpost" class="button01-out save_me" type="button" value="购 买"></td></tr>
</table>
    </form>
</div>
<div class="bottom">{include file="bottom"}</div>
</div>
</div>
</body>
</html>
